Ring Buffer
The Memento Ring Buffer is an area of the Host PC memory where the Memento messages are written by the contributors.
The Memento Ring Buffer:
● | Has a fixed capacity of 524.288 (512 K) message slots of 64 bytes each. |
● | Is managed as a "ring buffer": A new message replaces the oldest one when it becomes full. |
To optimize the storage and the throughput efficiencies of the Memento Ring Buffer, Memento messages issued by Euresys Drivers or Libraries are stored in a compact form.
A compacted message without arguments occupies only a single 64-byte memory slot in the Ring Buffer. When the message has arguments, it requires additional memory slots.
The original messages are reconstructed by the Memento Viewer application.
Messages issued by user applications are not compacted and thus, require more space in the Memento Ring Buffer.
The Memento Driver assigns a sequential number to every message entering the Memento Ring Buffer.
The sequential number is a 64-bit positive integer number that increments by 1 on every message input. The sequential number is not reset every boot session.
The sequential number unambiguously identifies a Memento message in the whole message history of a Host PC.
The Memento Driver maintains a synchronized copy of the Memento Ring Buffer on disk.
This allows the state and the content of the Memento Ring Buffer to be restored at the next boot session after a shutdown.
This mechanism operates correctly when the current session terminates normally.
Note: If the current session terminates with a "blue screen", or if the reset button is pushed, or if the power supply is removed, the Memento Ring Buffer data is appended to the crash dump file.